var dbHelper = require("../app_modules/mongoHelper.js");
function business(){};
business.getuser=function(metadata,callback){
    console.log("business.getUser");
    dbHelper.find("user",{},{},{"code":1},1,10,function(response){  
        var status=response==false?"0":"1";
        var msg=response==false?"faild":"ok";
        var data=response==false?"":response;
        var result={status:status,msg:msg,metadata:data}       
        return callback(result);      
    });
}
module.exports=business;